package com.itsu.admin.model;

import com.itsu.admin.valid.SelectGroup;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author Jerry.Su
 * @Date 2021/12/31 17:03
 */
@Data
@ToString
public class LoginModel implements Serializable {


    @NotBlank(groups = SelectGroup.class, message = "用户名不可为空")
    private String username;
    @NotBlank(groups = SelectGroup.class, message = "密码不可为空")
    private String password;
}
